<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 引入Boostrap的css文件 -->
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
    <!-- 引入Boostrap的表单验证文件 -->    
    <link rel="stylesheet" href="./lib/bootstrap-validator/css/bootstrapValidator.min.css">
    <!-- 引入进度条插件的css文件 -->    
    <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
    <!-- 引入jQuery的js文件 -->
    <script src="./lib/jquery/jquery.min.js"></script>
    <script src="./lib/jquery-fileupload/jquery.ui.widget.js"></script>
    <script src="./lib/jquery-fileupload/jquery.iframe-transport.js"></script>
    <!-- jquery文件上传插件 -->
    <script src="./lib/jquery-fileupload/jquery.fileupload.js"></script>
    <!-- 模板引擎 -->
    <script src="./lib/artTemplate/template-web.js"></script>
    <!-- boostrap的js文件 -->
    <script src="./lib/bootstrap/js/bootstrap.js"></script>
    <!-- boostrap分页插件 -->
    <script src="./lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <!-- boostrap表单验证 -->
    <script src="./lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
    <!-- echarts -->
    <script src="./lib/echarts/echarts.min.js"></script>
    <!-- 进度条 -->
    <script src="./lib/nprogress/nprogress.js"></script>
    <!--公用css和js  -->
    <link rel="stylesheet" href="./css/common.css">
    <script src="./js/common.js"></script>
    <!-- 当前页面css和js -->
    <link rel="stylesheet" href="./css/users.css">
     <script src="./js/users.js"></script>

</head>
<body>
    <div class="main">
        <div class="left ">
            <div class="title">
                <a href="#">黑马12期</a>
            </div>
            <div class="administrator">
                <img src="./images/default.png" alt="">
                <p>超级管理员</p>
            </div>
            <ul class="menu">
                <li>
                    <a href="javascript:void(0)">
                        <span class="glyphicon glyphicon-user"></span>用户管理</a>
                </li>
                <li>
                    <a href="javascript:void(0)" class="slideToggle">
                        <span class="glyphicon glyphicon-list"></span>分类管理</a>
                    <div class="submenu">
                        <a href="./category1.html">一级分类</a>
                         <a href="./subcategory.html">二级分类</a>
                    </div>
                </li>
                <li>
                    <a href="javascript:void(0)">
                        <span class="glyphicon glyphicon-tags"></span>商品管理</a>
                </li>
    
            </ul>
    
        </div>
        <div class="right">
            <div class="topBar">
                <a href="javascript:void(0)" class="pull-left toggle-menu">
                    <span class="glyphicon glyphicon-align-justify"></span>
                </a>
                <a href="javascript:void(0)" class="pull-right login-out">
                    <span class="glyphicon glyphicon-log-out"></span>
                </a>
            </div>
            <ol class="breadcrumb pageNav">
                <li>
                    <a href="#">管理系统</a>
                </li>
                <li class="active">首页</li>
            
            </ol>
            <div class="container-fluid">
                    <table class="table table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>用户名</th>
                                    <th>手机号</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>正常</td>
                                    <td>
                                        <button class="btn btn-danger">禁用</button>
                                    </td>
                                </tr>
                            </tbody>
                        
                        </table>
                        <div class="text-right">
                            <ul id="paginator"></ul>
                        </div>
            </div>

        </div>
    </div>
    <!-- 用户信息模板 -->
    <script id="userTable" type="text/html">
            
                {{each rows}}
                    <tr>
                        <td>{{(page-1)*size+$index+1}}</td>
                        <td>{{$value.username}}</td>
                        <td>{{$value.mobile}}</td>
                        <td> 
                            {{if $value.isDelete==1}}正常{{/if}}
                            {{if $value.isDelete==0}}删除 {{/if}}
                        </td>
                        <td> 
                            {{if $value.isDelete==1}}<button class="btn btn-danger" data-id="{{$value.id}}">禁用</button>{{/if}}
                            {{if $value.isDelete==0}}<button class="btn btn-success" data-id="{{$value.id}}">启用</button>{{/if}}
                                
                                
                        </td>
                           
                     

                    </tr>
                    {{/each}}
        
            
        </script>
    <!-- 退出模态框 -->
    <div id="myModal"class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body">
                <p><span class="glyphicon glyphicon-info-sign"></span>您确定要退出管理系统吗?&hellip;</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-loginout">确定</button>
            </div>
        </div>
    </div>
    </div>
    
</body>
</html>
